package com.sinaapp.mrblog.game.Assasin.screen;

import java.util.ArrayList;

import com.badlogic.gdx.Screen;
import com.sinaapp.mrblog.game.Assasin.render.BaseRender;
import com.sinaapp.mrblog.game.Assasin.util.Settings;

public abstract class AssasinScreen implements Screen{
	
	static ArrayList<BaseRender> renderList = new ArrayList<BaseRender>();
	
	private int state;
	private float stateTime;
	

	@Override
	public void resize(int width, int height) {
	}

	@Override
	public void show() {
	}

	@Override
	public void hide() {
	}

	@Override
	public void pause() {
		Settings.saveSeetings();
	}

	@Override
	public void resume() {
		
	}

	@Override
	public void dispose() {
		this.dispose();
	}


	@Override
	public void render(float delta) {
		for(BaseRender render: renderList){
			render.render(delta);
		}	
	}
	
	public void setState(int state){
		this.state = state;
		stateTime = 0;
	}
	
	public int getState(){
		return state;
	}
	
	public float getStateTime(){
		return stateTime;
	}

}
